// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入全局样式
import './assets/css/reset.css'
//引入全局js
import './assets/js/rem'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);



//全局引入axios库
import axios from 'axios'
//把引入好的axios库挂载到vue原型上
Vue.prototype.$axios = axios

//配置请求的根路径
axios.defaults.baseURL = 'http://localhost:3000/'


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
